<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>

    <button @click="clickIt">click</button>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  methods:{
    clickIt(){
      alert("ok");
      // 接口
      this.$axios({
        url: "/test",
        // method: "post",
        // data: this.$qs.stringify({accountId:_this.phoneNumber}),
      })
      // .then(function (resp) {
      //   console.log(resp.data);
      // });
    }
  }
}
</script>
